<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class JointTenancy extends Model
{
    use HasFactory;
    use SoftDeletes;
    protected $guarded=[];
    protected $table='zfm_JointTenancy';
    /**
     * 资讯信息展示
     * @return mixed
     */
    public static function list(){
        return self::paginate(10);
    }
    /**
     * 合租详情信息
     */
    public static function detail($field,$where){
        return self::where($field,$where)->first();
    }


}
